//
//  JKJloanRecommendViewController.m
//  jiukeji
//
//  Created by 小宇 on 2017/11/24.
//  Copyright © 2017年 小宇. All rights reserved.
//

#import "JKJloanRecommendViewController.h"

@interface JKJloanRecommendViewController ()

@end

@implementation JKJloanRecommendViewController

- (CGRect)textRectForBounds:(CGRect)bounds {
	return CGRectInset( bounds, 5, 0);
}


- (void)viewDidLoad {
    [super viewDidLoad];
	self.navigationItem.title = @"贷款推荐";
	self.view.backgroundColor = [UIColor hm_colorWithHex:0xf6f6f6];

	UIView *view1 = [[UIView alloc] init];
	[self.view addSubview:view1];
	view1.backgroundColor = [UIColor whiteColor];
	[view1 mas_makeConstraints:^(MASConstraintMaker *make) {
		make.top.equalTo(self.view).offset(74);
		make.left.right.equalTo(self.view);
		make.height.equalTo(@(50));
	}];

	UILabel *label = [[UILabel alloc] init];
	[view1 addSubview:label];
	label.text = @"￥";
	[label mas_makeConstraints:^(MASConstraintMaker *make) {
		make.left.equalTo(view1).offset(15);
		make.centerY.equalTo(view1);
	}];

	UITextField *textfile = [[UITextField alloc] init];
	[view1 addSubview:textfile];
	textfile.placeholder = @"输入贷款金额";
	//textfile.la
	//textfile.backgroundColor = [UIColor blackColor];
	//textfile.layer.cornerRadius = 2.5;
	textfile.layer.borderColor = [UIColor hm_colorWithR:0 G:0 B:0 alpha:0.3].CGColor;
	//[textField setValue:@(3 * SCREEN_RATE) forKey:@"paddingLeft"];
	textfile.layer.borderWidth = 1;
	[textfile setValue:[NSNumber numberWithInt:5] forKey:@"paddingLeft"];
	//[textfile ]
	[textfile mas_makeConstraints:^(MASConstraintMaker *make) {
		make.left.equalTo(self.view).offset(40);
		//make.center.equalTo(view1);
		make.centerY.equalTo(view1);
		make.right.equalTo(view1).offset(-10);
		//make.width.equalTo(@(220));
		make.height.equalTo(@(30));
	}];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
